package parser;

import antlr.RecognitionException;
import java.util.*;


class StmtPair extends Stmt {
    
    Stmt first;
    Stmt second;
    
    StmtPair(Stmt first, Stmt second) {
        this.first = first;
        this.second = second;
        yields = first.yields | second.yields;
        deletes = first.deletes | second.deletes;
    }
    
    void write(ByteStream out) throws RecognitionException {
        first.write(out);
        second.write(out);
    }
    
    String docString() {
         return first.docString();  
    }    
    
}


